﻿namespace MesApiSimulator.Objects
{
    /// <summary>
    /// 上传设备报警参数
    /// </summary>
    public class UploadWarnStatusArgs
    {
        /// <summary>
        /// 接口ID
        /// </summary>
        public int CmdID { get; set; }
        /// <summary>
        /// 设备编码
        /// </summary>
        public string EID { get; set; } = string.Empty;
        /// <summary>
        /// 设备IP地址
        /// </summary>
        public string IP { get; set; } = string.Empty;
        /// <summary>
        /// 产品型号
        /// </summary>
        public string ProductCode { get; set; } = string.Empty;
        /// <summary>
        /// 生产批次
        /// </summary>
        public string BatchNo { get; set; } = string.Empty;
        /// <summary>
        /// 操作员工号
        /// </summary>
        public string OperatorUser { get; set; } = string.Empty;
        /// <summary>
        /// 报警时间
        /// </summary>
        public string AlarmTime { get; set; } = string.Empty;
        /// <summary>
        /// 工序名称
        /// </summary>
        public string StepName { get; set; } = string.Empty;
        /// <summary>
        /// 产线
        /// </summary>
        public string LineName { get; set; } = string.Empty;
        /// <summary>
        /// 上传类型。0：正常上传，1：自动补传，2：手动补传
        /// </summary>
        public int TransferType { get; set; }
        /// <summary>
        /// 批量报警数据
        /// </summary>
        public AlarmJObject[]? Data { get; set; }
    }
}
